#!/usr/bin/env python3
#-*- coding:utf-8 -*-

#print('hello word')
#name=input()
#print(name)
#word="I am ok"
#d='d'
#print(word[0],d)
#print(word[0],word[3],d)

#条件
# temp=input('birth:')
# birth=int(temp)
# if birth>2000:
	# print("00后")
# else:
	# print("00前")
# pass

#循环
# def sum(numberStart,numberStop):
	# sum=0
	# for i in range(numberStart,numberStop+1):
		# sum=sum+i
	# return sum
# pass

# temp1=input('numberStart:')
# numberStart=int(temp1)

# temp2=input('numberStop:')
# numberStop=int(temp2)
# sum_r=sum(numberStart,numberStop)
# print('sum:',sum_r)

#迭代
# d={'a':1,'b':2,'c':3}
# for key in d:
	# print(key)
# pass

#map
# def normalize(names):
	# for name in names:
		# length=len(name)
		# if name[0]>='a' and name[0]<='z':
			# temp=str(name)
			# name[0]=temp[0]-32
		# else:
			# name[0]=temp[0]
		# for i in range(1,length):
			# if name[i]>='A' and name[i]<='Z': 
				# name[i]=temp[i]+32
			# else:
				# name[i]=temp[i]
	# return name

# L1=['adam','LTSA','barT']
# L2=list(map(normalize,L1))
# print(L2)

# def normalize(name):
	# name=name[0].upper()+name[1:].lower()
	# return name

# L1=['adam','LTSA','barT']
# L2=list(map(normalize,L1))
# print(L2)

#filter
# def is_palindrome(n):
	# temp=str(n)
	# if temp==temp[::-1]:
		# return True
	# else:
		# return False
# pass

# output=filter(is_palindrome,range(1,1000))
# print('1~1000',list(output))

#sorted
def by_name(t):
	return t[0]
	pass
	
def by_score(t):
	return t[1]
	pass
L=[('Bob',75),('Adm',92),('Bart',66),('Lisa',88)]
L2=sorted(L,key=by_score)
print(L2)